﻿namespace Repositories.DM;

/// <summary>
/// 功能模块
/// </summary>
[SugarTable("s_feature")]
public class Feature : Column_Base
{
    /// <summary>
    /// 姓名
    /// </summary>
    [SugarColumn(ColumnName = "name")]
    public string Name { get; set; }

    /// <summary>
    /// 父级id
    /// </summary>
    [SugarColumn(ColumnName = "pid")]
    public int Pid { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [SugarColumn(ColumnName = "code")]
    public string Code { get; set; }

    /// <summary>
    /// 类型 1 节点 2 菜单 3 功能 4 子菜单
    /// </summary>
    [SugarColumn(ColumnName = "type")]
    public int Type { get; set; }

    /// <summary>
    /// icon图片
    /// </summary>
    [SugarColumn(ColumnName = "imgurl")]
    public string ImgUrl { get; set; }

    /// <summary>
    /// 跳转路由
    /// </summary>
    [SugarColumn(ColumnName = "routurl")]
    public string RoutUrl { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnName = "order")]
    public int Order { get; set; }

    /// <summary>
    /// 是否启用（1：启用，2：禁用）
    /// </summary>
    [SugarColumn(ColumnName = "enable")]
    public int Enable { get; set; } = 1;
}
